﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DotnetFriendsClient.TestWebService;

namespace DotnetFriendsClient
{
    public partial class MainForm : Form
    {
        private LatestServiceSoapClient client;
        public MainForm()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            client = new LatestServiceSoapClient();
            label3.Text = client.GetYourPCExternalIP();
            dataGridView1.DataSource = client.GetLatestASPDOTNET().Tables[0];
            dataGridView1.Update();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            label1.Text = client.Welcome();
        }
    }
}
